#set(seoTitle="上传季报表")
#@layout()
#define js()

#end
#define content()
<div id="dialog" class="easyui-dialog" title="上传数据" style="width:600px;height:300px;padding:20px;" closed="false" buttons="#dlg-buttons">
    <form id="fm" method="post" novalidate action="#" enctype="multipart/form-data">
       
        <div class="fitem">
           <label>填报单位：</label>
          <select name="bank">
             #for(bank :banks)
                <option value="#(bank.organization)">#(bank.organization)</option>
             #end   
           </select>
        </div>
        <div class="fitem">
            <label>本期时间：</label>
           <select name="year">
                <option value="2017">2017</option>
                 <option value="2018">2018</option>
                  <option value="2019">2019</option>
                   <option value="2020">2020</option>
           </select> 年
                              
           
           <select name="quarter">
                <option value="1">第一</option>
                 <option value="2">第二</option>
                  <option value="3">第三</option>
                   <option value="4">第四</option>
                   
           </select>季度
        </div>
       <div class="fitem">
            <label>上传文件：</label>
           <input class="easyui-filebox" name="file" style="width:300px">
        </div>      
    </form>
</div>
<div id="dlg-buttons">
    <a href="javascript:void(0);" class="easyui-linkbutton" iconCls="icon-ok" onclick="post()">提交</a>
    <a href="javascript:void(0);" class="easyui-linkbutton" iconCls="icon-cancel" onclick="javascript:$('#dialog').dialog('close')">取消</a>
</div>

<script>
function post(){
    var submit_url = "addQuarterReport";
    //提交表单
    $('#fm').form('submit',{
        url: submit_url,
        onSubmit: function(){
            return $(this).form('validate');
        },
        success: function(result){
            var result = eval('('+result+')');
            if (result.code == "00"){
            		$.messager.alert('消息',result.message);
                
            }else{
                $.messager.alert('出错啦',result.message);
            }
        }
    });
}  
function deleteData(id){
	 $.getJSON('dataDel',{'id':id},function(result){
        
     });
}
</script>
#end
